com.micromegacorp.math.v3_spi
Class Int32

java.lang.Object
  extended by com.micromegacorp.math.v3_spi.Int32

public class Int32
extends java.lang.Object


Field Summary
 int high
           
 int low
           
protected static java.lang.String notReset
           
protected static java.lang.StringBuffer sbuf
           
 
Constructor Summary
Int32()
          Create a new FpuData object initialized to zero.
Int32(int num)
          Create a new Int32 initialized to the value of a 16-bit integer.
Int32(Int32 fnum)
          Create a new Intt32 initialized to the value of another Int32.
Int32(int high, int low)
          Create a new Int32 initialized to the floating point value contained in two 16-bit integers.
 
Method Summary
 Int32 read()
          Read 32-bit integer value from FPU register A.
 Int32 read(int reg)
          Read 32-bit integer value from FPU register.
 Int32 set(int num)
          Set Int32 to the value of a 16-bit integer.
 Int32 set(Int32 fnum)
          Set Int32 to the value of another Int32.
 Int32 set(int high, int low)
          Set Int32 to the floating point value contained in two 16-bit integers.
 Int32 set(java.lang.String s)
          Set int32 to the floating point value represented by a String.
 Int32 set(java.lang.StringBuffer sb)
          Set int32 to the floating point value represented by a StringBuffer.
 java.lang.String toString()
          Convert value of this Int32 to a String.
 void write()
          Write 32-bit floating point value to the FPU register A.
 void write(int reg)
          Write 32-bit integer value to the FPU register.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

high

public int high

low

public int low

notReset

protected static final java.lang.String notReset
See Also:
Constant Field Values

sbuf

protected static java.lang.StringBuffer sbuf
Constructor Detail

Int32

public Int32()
Create a new FpuData object initialized to zero.


Int32

public Int32(Int32 fnum)
Create a new Intt32 initialized to the value of another Int32.

Parameters:
fnum - Int32 number.

Int32

public Int32(int high,
             int low)
Create a new Int32 initialized to the floating point value contained in two 16-bit integers.

Parameters:
high - high 16 bits of floating point value.
low - low 16 bits of floating point value.

Int32

public Int32(int num)
Create a new Int32 initialized to the value of a 16-bit integer.

Parameters:
num - 16-bit integer value (sign extended).
Method Detail

set

public Int32 set(Int32 fnum)
Set Int32 to the value of another Int32.

Parameters:
fnum - Int32 number.
Returns:
Int32 reference to result.

set

public Int32 set(int high,
                 int low)
Set Int32 to the floating point value contained in two 16-bit integers.

Parameters:
high - high 16 bits of floating point value.
low - low 16 bits of floating point value.
Returns:
Int32 reference to result.

set

public Int32 set(int num)
Set Int32 to the value of a 16-bit integer.

Parameters:
num - 16-bit integer value (sign extended).
Returns:
Float32 reference to result.

set

public Int32 set(java.lang.String s)
Set int32 to the floating point value represented by a String.

Parameters:
s - String representing the floating point value.
Returns:
int32 reference to result.

set

public Int32 set(java.lang.StringBuffer sb)
Set int32 to the floating point value represented by a StringBuffer.

Parameters:
sb - StringBuffer representing the floating point value.
Returns:
int32 reference to result.

write

public void write()
Write 32-bit floating point value to the FPU register A.


write

public void write(int reg)
Write 32-bit integer value to the FPU register. If reg = -1, then write to register A. If reg = -2, then write to register X.

Parameters:
reg - register value.

read

public Int32 read()
Read 32-bit integer value from FPU register A.

Returns:
Float32 32-bit floating point value.

read

public Int32 read(int reg)
Read 32-bit integer value from FPU register. If reg = -1, then read from register A. If reg = -2, then read from register X.

Parameters:
reg - register value.
Returns:
Float32 32-bit integer value.

toString

public java.lang.String toString()
Convert value of this Int32 to a String.

Overrides:
toString in class java.lang.Object
Returns:
String representation of Int32.